package com.hzhr.iot.web;


import com.hzhr.iot.collect.CollectSdk;
import com.hzhr.iot.device.sdk.DeviceSdk;
import com.hzhr.iot.login.sdk.LoginSdk;
import com.hzhr.iot.statis.sdk.StatisSdk;
import com.hzhr.iot.toll.sdk.TollSdk;
import com.hzhr.iot.user.sdk.UserSdk;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.web.client.RestTemplate;

/**
 * Created by HL on 2017/12/19.
 */

@EnableDiscoveryClient
@SpringBootApplication
@Import({LoginSdk.class, TollSdk.class, UserSdk.class, DeviceSdk.class, StatisSdk.class, CollectSdk.class})
public class WebApp {
    @Bean
    @LoadBalanced
    RestTemplate restTemplate() {
        return new RestTemplate();
    }

    public static void main(String[] args) {
        SpringApplication.run(WebApp.class, args);
    }
}
